﻿//
// Copyright © MixModes Inc. 2011
//

using System;
using MixModes.Phone.Synergy.Utilities;

namespace MixModes.Phone.Synergy.Framework
{
    /// <summary>
    /// Data store event arguments
    /// </summary>
    public class DataStoreEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DataStoreEventArgs"/> class.
        /// </summary>
        /// <param name="transientStore">The transient store.</param>
        /// <param name="persistentStore">The persistent store.</param>
        /// <param name="state">The state.</param>
        public DataStoreEventArgs(IDataStore transientStore, IDataStore persistentStore, ApplicationState state)
        {
            Validate.NotNull(transientStore, "transientStore");
            Validate.NotNull(persistentStore, "persistentStore");
            TransientStore = transientStore;
            PersistentStore = persistentStore;
            State = state;
        }

        /// <summary>
        /// Gets the transient store.
        /// </summary>
        public IDataStore TransientStore
        {
            get; 
            private set;
        }

        /// <summary>
        /// Gets the persistent store.
        /// </summary>
        public IDataStore PersistentStore
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the state.
        /// </summary>
        public ApplicationState State
        {
            get; 
            private set;
        }
    }
}
